import request from "@/utils/request";
// 获取区房屋管理单位 /common/getArea
export function getArea(data) {
  return request({
    url: "/common/getArea",
    method: "GET",
    params: data,
  });
}

// /common/getHouseAdmin 获取管理部门
export function getHouseAdmin(data) {
  return request({
    url: `/common/getHouseAdmin`,
    method: "GET",
    params: data,
  });
}
// 获取管片信息 /common/getBlockGroup
export function getBlockGroup(data) {
  return request({
    url: `/common/getBlockGroup`,
    method: "GET",
    params: data,
  });
}
// 获取管片下面的所 /common/getBlockByGroup
export function getBlockByGroup(data) {
  return request({
    url: `/common/getBlockByGroup`,
    method: "GET",
    params: data,
  });
}
// 文件上传 /fileUpload/upload
export function upload(data) {
  return request({
    url: `/fileUpload/upload`,
    method: "POST",
    data,
  });
}
// 查询区相关信息
export function districtHouseAdminInfo() {
  return request({
    url: `/common/districtHouseAdminInfo`,
    method: "GET",
  });
}
